import Vue from 'vue'
import VueRouter from 'vue-router'
import CampusBinhai from '../views/CampusBinhai.vue'
import CampusChashan from '../views/CampusChashan.vue'
import CampusYueqing from '../views/CampusYueqing.vue'
import StudentSystem from '../views/StudentSystem.vue'
import wu from '../views/wu.vue'
import liu from '../views/liu.vue'
import qi from '../views/qi.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'CampusBinhai',
    component: CampusBinhai
  },
  {
    path: '/CampusChashan',
    name: 'CampusChashan',
    component: CampusChashan,
    children: [
      {path:'wu',component:wu},
      {path:'liu',component:liu},
      {path:'qi',component:qi},
    ]
  },
  {
    path: '/CampusYueqing',
    name: 'CampusYueqing',
    component: CampusYueqing
  },
  {
    path: '/StudentSystem',
    name: 'StudentSystem',
    component: StudentSystem
  }
]

const router = new VueRouter({
  routes
})

export default router
